package com.genexususa.eo.google.test.feed;

import com.genexususa.eo.google.connection.FeedManager;

public class ConsumeCreateFeed {

    public static void main(String[] args){
        String xml = "<GA_FeedCollection xmlns=\"L2TMediaTrunk\">\n" +
                "\t<GA_Feed xmlns=\"L2TMediaTrunk\">\n" +
                "\t\t<FeedGxId>1772</FeedGxId>\n" +
                "\t\t<FeedTypeId>2</FeedTypeId>\n" +
                "\t\t<FeedName>Call Ad Extension 2</FeedName>\n" +
                "\t\t<FeedAttributes>\n" +
                "\t\t\t<FeedAttribute>\n" +
                "\t\t\t\t<FeedAttGxId>7975</FeedAttGxId>\n" +
                "\t\t\t\t<FeedAttTypeId>1</FeedAttTypeId>\n" +
                "\t\t\t\t<FeedAttName>Phone Number</FeedAttName>\n" +
                "\t\t\t\t<FeedAttDataType>STRING</FeedAttDataType>\n" +
                "\t\t\t</FeedAttribute>\n" +
                "\t\t\t<FeedAttribute>\n" +
                "\t\t\t\t<FeedAttGxId>7976</FeedAttGxId>\n" +
                "\t\t\t\t<FeedAttTypeId>2</FeedAttTypeId>\n" +
                "\t\t\t\t<FeedAttName>Country Code</FeedAttName>\n" +
                "\t\t\t\t<FeedAttDataType>STRING</FeedAttDataType>\n" +
                "\t\t\t</FeedAttribute>\n" +
                "\t\t\t<FeedAttribute>\n" +
                "\t\t\t\t<FeedAttGxId>7977</FeedAttGxId>\n" +
                "\t\t\t\t<FeedAttTypeId>3</FeedAttTypeId>\n" +
                "\t\t\t\t<FeedAttName>Tracked</FeedAttName>\n" +
                "\t\t\t\t<FeedAttDataType>BOOLEAN</FeedAttDataType>\n" +
                "\t\t\t</FeedAttribute>\n" +
                "\t\t\t<FeedAttribute>\n" +
                "\t\t\t\t<FeedAttGxId>7978</FeedAttGxId>\n" +
                "\t\t\t\t<FeedAttTypeId>4</FeedAttTypeId>\n" +
                "\t\t\t\t<FeedAttName>Only</FeedAttName>\n" +
                "\t\t\t\t<FeedAttDataType>BOOLEAN</FeedAttDataType>\n" +
                "\t\t\t</FeedAttribute>\n" +
                "\t\t\t<FeedAttribute>\n" +
                "\t\t\t\t<FeedAttGxId>7979</FeedAttGxId>\n" +
                "\t\t\t\t<FeedAttTypeId>5</FeedAttTypeId>\n" +
                "\t\t\t\t<FeedAttName>Conversion Duration Threshold</FeedAttName>\n" +
                "\t\t\t\t<FeedAttDataType>INT64</FeedAttDataType>\n" +
                "\t\t\t</FeedAttribute>\n" +
                "\t\t</FeedAttributes>\n" +
                "\t</GA_Feed>\n" +
                "</GA_FeedCollection>";

        FeedManager fm = new FeedManager();
        fm.SetClientId("2274385081");
        String res = fm.CreateFeed(xml);
        System.out.println(res);

    }
}
